import cgi
import os

from TopicDao import *

from google.appengine.ext.webapp import template
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db

class RestUrlPage(webapp.RequestHandler):
    def get(self):    
        topicDao = TopicDao()
        topics = topicDao.loadAll()
        
        template_values = {
                           'topics': topics,
                           }

        path = os.path.join(os.path.dirname(__file__), 'resturl.html')
        self.response.out.write(template.render(path, template_values))
        